package busmap.main;

import java.util.List;

import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.widget.LinearLayout;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;
import com.google.android.maps.Overlay;
import com.google.android.maps.OverlayItem;

public class BusMapActivity extends MapActivity {
		LinearLayout linearLayout;
		MapView mapView;
		List<Overlay> mapOverlays;
		Drawable drawable;
		HelloItemizedOverlay itemizedoverlay;
		MapController mapviewControler;
	   @Override
	    public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.main);
	        mapView = (MapView) findViewById(R.id.mapview);
	        mapView.setBuiltInZoomControls(true);
	        mapOverlays = mapView.getOverlays();
	        drawable = this.getResources().getDrawable(R.drawable.androidmarker);
	        itemizedoverlay = new HelloItemizedOverlay(drawable);
	        GeoPoint point = new GeoPoint( 10780655, 106669114);
	        OverlayItem overlayitem = new OverlayItem(point, "", "");
	        itemizedoverlay.addOverlay(overlayitem);
	        mapOverlays.add(itemizedoverlay);
	        mapviewControler = mapView.getController();
	        mapviewControler.setZoom(14);
	        mapviewControler.setCenter(point);
	        }

	@Override
	protected boolean isRouteDisplayed() {
		// TODO Auto-generated method stub
		return false;
	}
}